import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { TaskController } from './task.controller';
import { TaskService } from './task.service';
import { Task, User, Project, TaskComment, TaskTag, TaskCommentReply } from '../../entities';
import { TaskCommentController } from './task-comment.controller';
import { TaskCommentService } from './task-comment.service';
import { TaskCommentReplyController } from './task-comment-reply.controller';
import { TaskCommentReplyService } from './task-comment-reply.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([Task, User, Project, TaskComment, TaskTag, TaskCommentReply]),
  ],
  controllers: [TaskController, TaskCommentController, TaskCommentReplyController],
  providers: [TaskService, TaskCommentService, TaskCommentReplyService],
  exports: [TaskService, TaskCommentService, TaskCommentReplyService],
})
export class TaskModule {} 